Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More config options #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

sdemura
Copy link

@sdemura sdemura commented Feb 1, 2018

Adds more server options to make this role a bit more useable

  • config dir support
  • region support
  • create data dirs with permissions

Adds some more config options to make this role more useable
- config dir support
- region support
- create data directories with proper permissions
Adds more server options to make this role a bit more useable
- config dir support
- region support
- create data dirs with permissions
Copy link
Collaborator

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea.

Please rebase and update the README.

minio_server_opts: ""

# Directory to store minio config. Will default to minio_user/.minio if not defined
minio_config_dir: ""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's set a default to /etc/minio.

owner: "{{ minio_user }}"
group: "{{ minio_group }}"
state: directory
when: minio_config_dir is defined
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This when won't work because it's defined as "" in the defaults. Let's just set a sane default.

@@ -27,6 +27,15 @@
mode: 0755
when: ansible_service_mgr != "systemd"

- name: create the minio data directory
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was superseded by #4.

owner: "{{ minio_user }}"
group: "{{ minio_group }}"
state: directory
when: minio_config_dir is defined
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minio_config_dir is always defined (defined in defaults/main.yml). better would be to check if variable is an empty string or not.

minio_server_opts: ""

# Directory to store minio config. Will default to minio_user/.minio if not defined
minio_config_dir: ""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be also added to README.md with a short explanaition.

akire0ne pushed a commit to akire0ne/ansible-minio that referenced this pull request Feb 15, 2022
Pass the `$MINIO_ARGS` var to ExecStart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants